package com.zxx.mvpPractice.presenter.contract;

import com.zxx.mvpPractice.base.BasePresenter;
import com.zxx.mvpPractice.base.BaseView;
import com.zxx.mvpPractice.model.bean.LoginUser;

/**
 * Created by Administrator on 2016/12/17.
 */
public interface LoginFragmentContract {


    interface View extends BaseView<Presenter> {

        void showProgressDialog();

        void hideProgressDialog();

        void LoginSuccess();

        void loginFail();

//        void showBmob(LoginUser msg);

        void showMessage(String text);

    }

    interface Presenter extends BasePresenter {
//        void bmobAdd();

//        void bmobQuery();

//        void bmobUpdate();

//        void bmobDelete();

        /**
         * 手机号验证码
         *
         * @param username
         * @param password
         * @param loginMode 0 验证码登录 1 用户名密码登录
         */
        void bombUserLogin(String username, String password, int loginMode);

        void bombRequestSms(String phoneNumber);//请求发送验证码

        void verifySms();//校验验证码
    }
}
